<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
    //编写一个函数remove，删除数组中制定元素，要求返回新的数组
    var arr=['一','呀','么','一','二'];
    //返回结果['呀','么','二'];
    function remove(arr,str){
    return arr.filter(function(item){
        return item!==str;
    })
    }
    var brr= remove (arr,'一');
    console.log(brr); 
    </script>
</body>
</html>